package com.jk1123.us.api.dao;

import com.jk1123.us.core.ShortUrl;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-16 03:21
 * @description
 */
public interface RecordDao {
    /**
     * 保存一条短地址
     * @param shortUrl
     */
    void save(ShortUrl shortUrl);

    /**
     * @param shortUrl
     * @return
     */
    ShortUrl findById(String shortUrl);
}
